package tomoto.util;

import java.util.Iterator;

/**
 * The base implementation of read-only iterator.
 * 
 * @author Tomoto Shimizu Washio
 *
 * @param <E> element type
 */
public abstract class ReadOnlyIterator<E> implements Iterator<E> {
	/**
	 * {@inheritDoc} Always throws {@link UnsupportedOperationException}.
	 */
	public final void remove() {
		throw new UnsupportedOperationException();
	}
}
